package org.novelhibernate.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Note that a PK/FK should never use alternative type, otherwise it would not work properly
 * @author Tao Chen
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface PojoForeignEntityDeclaration {

	// The column name of one entity
	String externalEntityColumnName(); 
	// The name of foreign key
	String columnName();
	
}
